package com.yonyong.tao.parts.runspring;

import java.lang.reflect.Proxy;

/**
 * @Describtion Todo
 * @Author yonyong
 * @Date 2020/4/21 15:41
 * @Version 1.0.0
 **/
public class MapperSession {

    public static Object getMapper(Class clazz){
        Class<?>[] clazzes = new Class[]{clazz};
        return Proxy.newProxyInstance(MapperSession.class.getClassLoader(),clazzes,new MyInvocationHandler());
    }
}
